package com.gc.server.dao;

import com.gc.server.entity.PlanEntity;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

/**
 * 周计划Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
@Mapper
public interface PlanDao extends BaseDao<PlanEntity> {

    /**

        List<PlanVo> queryListVo(PlanVo planVo);

        PlanVo getVo(Long id);

    **/

    /**
     * 找到所有计划
     * @param userId
     * @return
     */
   List<PlanEntity> findByUserId(Long userId);

    List<PlanEntity> findByYear(@Param("userId") Long userId, @Param("year") int year);

    PlanEntity findByDate(@Param("date") Date date, @Param("userId") Long userId);
}
